/*
* CSS Slider Definitionen
* 
* @Theme Name: Piratenkleider
* @Theme URI: https://github.com/xwolfde/Piratenkleider
* @Description: Allgemeines Wordpress Theme für Webauftritte der Piratenpartei
* @Author: Wolfgang Wiese (xwolf)
* @Author URI: http://www.xwolf.de 
*/

 
/* Browser Resets */
.flex-container a:active,
.flexslider a:active,
.flex-container a:focus,
.flexslider a:focus  {outline: none;}
.slides,
.flex-control-nav,
.flex-direction-nav {margin: 0; padding: 0; list-style: none;} 
/* FlexSlider Necessary Styles
*********************************/ 
.flexslider {margin: 0; padding: 0;}
.flexslider .slides > li {display: none; -webkit-backface-visibility: hidden;} /* Hide the slides before the JS is loaded. Avoids image jumping */
.flexslider .slides img {width: 100%; display: block;}
.flex-pauseplay span {text-transform: capitalize;}

/* Clearfix for the .slides element */
.slides:after {content: "."; display: block; clear: both; visibility: hidden; line-height: 0; height: 0;} 
html[xmlns] .slides {display: block;} 
* html .slides {height: 1%;}

/* No JavaScript Fallback */
/* If you are not using another script, such as Modernizr, make sure you
 * include js that eliminates this class on page load */
.no-js .slides > li:first-child {display: block;}

.flexslider {
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative; 
  height: 240px;  
  overflow: hidden;
    /* Bilder die trotz cropping hoeher als 240 Pixel sind,
      werden abgeschnitten */
}
.content-aside .flexslider {
    height: 391px;    
    margin: 10px auto 20px;
    
}


.content-aside .flex-control-nav {
  display: none; 
}


.flexslider .bigslider img {    
    min-width: 705px;

    /* Kommentare entfernen, wenn man möchte dass die Bilder an die 
       proportionale Breite angepasst werden und nicht abgeschnitten werden: */
    
   /*  max-height: 240px;  
      width: auto; 
   */
}

.flexslider .slides > li {
  display: none; 
}

.slides:after {
  content: ".";
  display: block;
  clear: both;
  visibility: hidden;
  line-height: 0;
  height: 0; }

html[xmlns] .slides {
  display: block; }

* html .slides {
  height: 1%;
}


.slides > li:first-child {
  display: block;
}

.flex-direction-nav {
  display: none; 
}

.flex-control-nav {
  position: absolute;
  top: 10px;
  right: 62px;
  overflow: hidden;
  z-index: 800; 
}
.flex-control-nav li {
    float: left;
    margin-right: 1px; 
}
.flex-control-nav li a {
      display: block;
      padding: 0px 5px;
      background: white;
      background: rgba(255, 255, 255, 0.5);
      cursor: pointer;
      color: black;
}
.flex-control-nav li a.flex-active,
.flex-control-nav li a.active,
.flex-control-nav li a:hover,
.flex-control-nav li a:focus {
        background: white; 
}  


.content-aside .flexslider .flex-pauseplay,
.first-teaser-widget-area .flexslider .flex-pauseplay {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 50px;
    text-align: center;
    padding: 0px 1px 1px 1px;
    overflow: hidden;
    z-index: 800;
    background: white;
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    color: black; 

}
.content-aside .flexslider .flex-pauseplay {
    bottom: inherit;
    top: 10px;
    left: 10px;
}
.flexslider .flex-pauseplay:hover,
.flexslider .flex-pauseplay:focus {
        background: white;
}
.slide .caption  h3 {
  font-size: 22.8px;
  line-height: 22px;
  margin-left: -5px; 
   margin-bottom: 0; 
}
.slide .caption h3 a {
    background: #2d7dc5;
    padding: 2px 5px 0px 5px; 
}
.slide .caption h3 a:hover {
      background: #ff8800; 
}

.content-aside .slide .caption,
.first-teaser-widget-area .slide .caption {
  background: transparent;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 10px 20px;
  text-align: right; 
}
.content-aside .slide .caption {
    width: 100%;
}
.content-aside .slide .caption p,
.first-teaser-widget-area .slide .caption p {
    font-size: 12px;
    margin-bottom: 5px; 
    display: inline-block;
    font-size: 18px;
}
.content-aside .slide .caption a,
.first-teaser-widget-area .slide .caption a {
    background: #2d7dc5;
    color: white;
    display: inline-block;
    padding: 0 5px; 
    z-index: 99;
}
.first-teaser-widget-area .slide .bigslider  {
  /*  background: none repeat scroll 0 0 #111111; */
  position: relative;
  height: 240px;
}
 
.first-teaser-widget-area .slide .textslider  {
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin: 0 5px 5px 5px;
    height: 235px;       
    padding: 1em;
    
}
.first-teaser-widget-area .slide .textslider img {
    float: left;    
    margin: 25px 20px 15px 25px;
    max-height: 185px;
}
.first-teaser-widget-area .slide .textslider h3 {
    padding-top: 35px;
    margin-bottom: 15px;
    color: white;    
}
.first-teaser-widget-area .slide .textslider a {
    color: white;    
}
.content-aside .flexslider li.slide a {
    padding: 0;
}

@media only screen and (max-width: 767px) {  
 .symbolbild, 
  .flexslider, 
  .flexslider img {
       
        overflow: hidden;
   }   
   .content-aside .flexslider {
        height: auto;    
        margin-bottom: 10px;
    }
 
}

@media only screen and (max-width: 479px) {  
  .symbolbild, 
  .flexslider, 
  .flexslider img {      
        overflow: hidden;
   }   
   .content-aside .flexslider {
        height: auto;    
        margin-bottom: 10px;
    }

  .flexslider .caption {
    padding: 5px 10px;
  }
  .flexslider .caption h2, 
  .flexslider .caption h3 {
      font-size: 12px;
      font-family: Helvetica, Arial, sans-serif;
      letter-spacing: 0px;
  }

}
